Skip to content

Conversation

@gabrielseco
Copy link
Collaborator

@gabrielseco gabrielseco commented Jan 31, 2026

We remove the whitelisting to allow update to whatever version


Note

Medium Risk
Moderate risk because schema-version validation is removed (potentially requesting unsupported schema versions) and generated SDK surface area changes could affect downstream consumers relying on strict types.

Overview
Onboarding schema version handling is loosened: contract_details schema version selection no longer validates against a per-country allowlist, and version parameters are widened to accept number | 'latest' (including jsonSchemaVersionByCountry and related hooks/API calls). Tests and utilities are updated accordingly by removing the now-invalid allowlist/validation expectations.

The generated API client is expanded with SCIM v2 support by adding GET /scim/v2/Users, GET /scim/v2/Users/{id}, GET /scim/v2/Groups, and GET /scim/v2/Groups/{id} plus their corresponding types. It also updates several schema-version query params to accept 'latest' and adds an exclude_files query option to getShowEmployment.

Written by Cursor Bugbot for commit ba9f915. This will update automatically on new commits. Configure here.

@gabrielseco gabrielseco self-assigned this Jan 31, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 31, 2026

📦 Bundle Size Report

Metric Current Previous Change Status
Total (gzip) 182.67 kB 182.9 kB -226 B (-0.1%) 🟢
Total (raw) 486.08 kB 486.4 kB -318 B (-0.1%) 🟢
CSS (gzip) 18.95 kB 18.95 kB 0 B (0%) 🟢
CSS (raw) 99.88 kB 99.88 kB 0 B (0%) 🟢

Size Limits

  • ✅ Total gzipped: 182.67 kB / 185 kB (98.7%)
  • ✅ Total raw: 486.08 kB / 500 kB (97.2%)
  • ✅ CSS gzipped: 18.95 kB / 25 kB (75.8%)

Largest Files (Top 5)

  1. chunk-H5CNWMEM.js - 12.43 kB (0 B (0%))
  2. styles.css - 9.48 kB (0 B (0%))
  3. index.css - 9.48 kB (0 B (0%))
  4. index.js - 5.78 kB (+5 B (+0.1%))
  5. chunk-HBCFJ6PK.js - 5.45 kB (new)
View All Files (281 total)
File Size (gzip) Change
chunk-H5CNWMEM.js 12.43 kB 0 B (0%)
styles.css 9.48 kB 0 B (0%)
index.css 9.48 kB 0 B (0%)
index.js 5.78 kB +5 B (+0.1%)
chunk-HBCFJ6PK.js 5.45 kB new
chunk-UTAMXYX4.js 4.07 kB new
chunk-3FF65KI3.js 3.3 kB new
chunk-T7O3YYOG.js 3.29 kB 0 B (0%)
chunk-44SKGM3K.js 3.21 kB new
chunk-PAUMTSGO.js 3.2 kB new

✅ Bundle size check passed

@github-actions
Copy link
Contributor

github-actions bot commented Jan 31, 2026

Deploy preview for remote-flows ready!

✅ Preview
https://remote-flows-kkfzgoc69-remotecom.vercel.app

Built with commit c83483e.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link
Contributor

github-actions bot commented Jan 31, 2026

Deploy preview for remote-flows-example-app ready!

✅ Preview
https://remote-flows-example-232kt7hjq-remotecom.vercel.app

Built with commit c83483e.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link
Contributor

github-actions bot commented Jan 31, 2026

npm warn exec The following package was not found and will be installed: tsx@4.21.0

📊 Coverage Report

⚠️ Coverage decreased

Metric Current Previous Change Status
Lines 87.58% 87.63% -0.05% 🔴
Statements 87.21% 87.26% -0.05% 🔴
Functions 83.17% 83.18% -0.02% 🔴
Branches 79.24% 79.33% -0.10% 🔴

Detailed Breakdown

Lines Coverage
  • Covered: 2885 / 3294
  • Coverage: 87.58%
  • Change: -0.05% (-13 lines)
Statements Coverage
  • Covered: 2939 / 3370
  • Coverage: 87.21%
  • Change: -0.05% (-14 statements)
Functions Coverage
  • Covered: 825 / 992
  • Coverage: 83.17%
  • Change: -0.02% (-1 functions)
Branches Coverage
  • Covered: 1847 / 2331
  • Coverage: 79.24%
  • Change: -0.10% (-11 branches)

✅ Coverage check passed

@gabrielseco
Copy link
Collaborator Author

bugbot run

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

* Defines allowed JSON schema versions per country for contract_details
* Key: country code, Value: array of allowed versions (first is default/recommended)
*/
const COUNTRY_CONTRACT_DETAILS_VERSION_ALLOWLIST: Record<string, number[]> = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This i think you still need no? it happens to be the same as default version for DEU, so it should not matter, but just to clarify, we might still have a default version from the sdk that is different per country, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand, the recommended version is the 1 one for all countries

I understand in the future there could be recommended versions by each country, we can do that later as now all countries are on 1

Copy link
Collaborator

@cammellos cammellos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to check with bamboohr before merging, but otherwise looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants